home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
gauge
/
slidvb25
/
sdigital.frm
< prev
next >
Wrap
Text File
|
1996-01-18
|
17KB
|
522 lines
VERSION 2.00
Begin Form DigitalDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Slider Digital Properties Demo"
ClientHeight = 4500
ClientLeft = 1635
ClientTop = 1665
ClientWidth = 5280
Height = 4905
Left = 1575
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 300
ScaleMode = 3 'Pixel
ScaleWidth = 352
Top = 1320
Width = 5400
Begin Frame Frame6
BackColor = &H00C0C0C0&
Caption = "Slider Value"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 765
Left = 1635
TabIndex = 27
Top = 3600
Width = 3555
Begin HScrollBar HScroll1
Height = 285
Index = 3
LargeChange = 100
Left = 1200
Max = 13000
Min = -3000
SmallChange = 100
TabIndex = 28
Top = 300
Value = 650
Width = 2000
End
Begin Label Label1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "Value:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 3
Left = 720
TabIndex = 30
Top = 345
Width = 450
End
Begin Label Label2
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "0"
Height = 195
Index = 3
Left = 3255
TabIndex = 29
Top = 345
Width = 105
End
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Color and Font Values"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1410
Left = 1635
TabIndex = 12
Top = 45
Width = 3555
Begin Frame Frame5
BackColor = &H00C0C0C0&
Caption = "DigitalColor"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1000
Left = 135
TabIndex = 17
Top = 240
Width = 1515
Begin Label Label3
BackColor = &H00808080&
Height = 300
Index = 7
Left = 1050
TabIndex = 25
Top = 600
Width = 300
End
Begin Label Label3
BackColor = &H00000000&
Height = 300
Index = 0
Left = 150
TabIndex = 24
Top = 300
Width = 300
End
Begin Label Label3
BackColor = &H00FFFFFF&
Height = 300
Index = 1
Left = 450
TabIndex = 23
Top = 300
Width = 300
End
Begin Label Label3
BackColor = &H0000FFFF&
Height = 300
Index = 2
Left = 750
TabIndex = 22
Top = 300
Width = 300
End
Begin Label Label3
BackColor = &H0000FF00&
Height = 300
Index = 3
Left = 1050
TabIndex = 21
Top = 300
Width = 300
End
Begin Label Label3
BackColor = &H00FFFF00&
Height = 300
Index = 4
Left = 150
TabIndex = 20
Top = 600
Width = 300
End
Begin Label Label3
BackColor = &H00FF0000&
Height = 300
Index = 5
Left = 450
TabIndex = 19
Top = 600
Width = 300
End
Begin Label Label3
BackColor = &H00FF00FF&
Height = 300
Index = 6
Left = 750
TabIndex = 18
Top = 600
Width = 300
End
End
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "DigitalFontID"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1000
Left = 1920
TabIndex = 13
Top = 240
Width = 1530
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "MS Serif"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Index = 2
Left = 150
TabIndex = 16
Top = 675
Width = 1200
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Courier"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Courier"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 1
Left = 150
TabIndex = 15
Top = 465
Width = 1200
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Arial"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 0
Left = 150
TabIndex = 14
Top = 285
Value = -1 'True
Width = 735
End
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Digital Position"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 975
Left = 1635
TabIndex = 2
Top = 2580
Width = 3550
Begin HScrollBar HScroll1
Height = 285
Index = 1
LargeChange = 10
Left = 1215
Max = 100
TabIndex = 4
Top = 570
Width = 2000
End
Begin HScrollBar HScroll1
Height = 285
Index = 0
LargeChange = 10
Left = 1215
Max = 100
TabIndex = 3
Top = 300
Width = 2000
End
Begin Label Label2
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "0"
Height = 195
Index = 1
Left = 3240
TabIndex = 8
Top = 615
Width = 105
End
Begin Label Label2
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "0"
Height = 195
Index = 0
Left = 3240
TabIndex = 7
Top = 345
Width = 105
End
Begin Label Label1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "DigitalY:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 1
Left = 615
TabIndex = 6
Top = 615
Width = 585
End
Begin Label Label1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "DigitalX:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 630
TabIndex = 5
Top = 345
Width = 585
End
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Digital Value"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1065
Index = 0
Left = 1635
TabIndex = 1
Top = 1500
Width = 3550
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "Digital"
Height = 315
Left = 255
TabIndex = 26
Top = 285
Value = 1 'Checked
Width = 915
End
Begin HScrollBar HScroll1
Height = 285
Index = 2
LargeChange = 100
Left = 1215
Max = 500
SmallChange = 100
TabIndex = 9
Top = 585
Width = 2000
End
Begin Label Label2
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "0"
Height = 195
Index = 2
Left = 3270
TabIndex = 11
Top = 630
Width = 105
End
Begin Label Label1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "DigitalDecimals:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 2
Left = 75
TabIndex = 10
Top = 615
Width = 1125
End
End
Begin SLIDER Slider1
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00C0C0C0&
BarBorder = 0.05
BarInner = 0.4
BarOuter = 0.75
BevelInner = 2 ' 2 - Inset
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderWidth = 2
CaptionID = 0
Captions = 0
Digital = -1 'True
DigitalColor = &H00FFFFFF&
DigitalDecimals = 1
DigitalFontID = 0
DigitalX = 0.575
DigitalY = 0.875
Direction = 1 ' 1 - Backward
FontID = 0
Height = 4260
KnobColor = &H00000000&
KnobOffset = 0
KnobStyle = 0 ' 0 - None
KnobXScale = 0
KnobYScale = 0
Left = 105
Max = 130
Min = -30
MouseControl = -1 'True
OffColor = &H00FFFFFF&
OnColor = &H00000080&
Orientation = 1 ' 1 - Vertical
Shape = ""
ShapeStyle = 2 ' 2 - Thermometer
Snap = 0 ' 0 - None
SnapIncrement = 0
TabIndex = 0
TicID = 0
Tics = 1
Top = 135
Value = 65
Width = 1455
ZLoad = SDIGITAL.FRX:0000
End
End
Sub Check1_Click ()
slider1.Digital = check1
End Sub
Sub Form_Load ()
hscroll1(0) = slider1.DigitalX * 100
hscroll1(1) = slider1.DigitalY * 100
hscroll1(2) = slider1.DigitalDecimals * 100
hscroll1(3) = slider1.Value * 100
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
slider1.DigitalX = hscroll1(index) / 100
Case 1
slider1.DigitalY = hscroll1(index) / 100
Case 2
slider1.DigitalDecimals = hscroll1(index) / 100
Case 3
slider1.Value = hscroll1(index) / 100
End Select
label2(index) = hscroll1(index) / 100
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
slider1.DigitalX = hscroll1(index) / 100
Case 1
slider1.DigitalY = hscroll1(index) / 100
Case 2
slider1.DigitalDecimals = hscroll1(index) / 100
Case 3
slider1.Value = hscroll1(index) / 100
End Select
label2(index) = hscroll1(index) / 100
End Sub
Sub Label3_Click (index As Integer)
slider1.DigitalColor = label3(index).BackColor
End Sub
Sub Option1_Click (index As Integer)
If index = 0 Then
slider1.Digital = True
Else
slider1.Digital = False
End If
End Sub
Sub Option2_Click (index As Integer)
slider1.DigitalFontID = index
End Sub
Sub Slider1_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
hscroll1(3) = slider1.Value * 100
End Sub